package ipebg.mzk.facade.system.service;

import ipebg.mzk.common.util.Page;
import ipebg.mzk.facade.entity.MsAdminRole;
import ipebg.mzk.facade.entity.MsAdminRoleAuthority;
import ipebg.mzk.facade.entity.MsAdminUserRole;

import java.util.List;

public interface RoleService {

	public Page getRoleList(MsAdminRole roleBean_1, int from, int length) throws Exception;

	public void saveOrUpdate(MsAdminRole roleBean);

	public boolean deleteRole(String roleId) throws Exception;

	public MsAdminRole findMsAdminRoleById(String roleId);

	public List<MsAdminUserRole> findUserByRoleId(String roleId) throws Exception;

	public List<MsAdminRoleAuthority> findAuthorityByRoleId(String roleId) throws Exception;

	public MsAdminRole findMsAdminRoleByRoleCode(String roleCode) throws Exception;
	
	/**
	 * 獲取所有的角色
	 * @return
	 */
	public List<MsAdminRole> getAllRoleList(String[] orderBy);

}
